@import "..\\style.scss";
.topbar{
    position: fixed;
    background-color: white;
}
.box {
    flex: 1;
    padding-top: 50px;
    .newsbg{
        background-image: url("http://localhost:3000/bg.jpg");
        background-position: 0px -120px;
        width: 100%;
        height: 350px;
        background-size: cover;
        background-repeat: no-repeat;
        position: relative;
    }
    .searchcontainer{
        position:absolute;
        width: 60%;
        top: 250px;
        left: 50%;
        transform: translate(-50%);
        z-index: 1;
    }
    #newsSearch{
        width: 100%;
        height: 50px;
        outline-style: none;
        padding-left: 10px;
    }
    .list-group{
        position: absolute;
        z-index: 10;
        width: 100%;
        opacity: 0.9;
    }
    .cardContainer{
        height: 320px;
        // padding: 10px;
        justify-content: space-around;
        display: flex;
        z-index: 0;
        position: relative;
        .card{
            flex: 1;
            margin: 10px;
            transition: all 0.5s;
            &:hover{
                cursor: pointer;
                box-shadow: 0 0 15px 0px rgba(0,0,0,0.1);
                transform: translateY(-5px);
                // top: -5px;
            }
        }
        .card-img-top{
            width: 100%;
            height: 250px;
            background-size: cover;
            background-position: center;
        }
        .card-title{
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
    .newstab{
        padding: 10px;
    }
    .tab-link{
        color: black;
    }
    .tab-item{
        border-bottom: 1px solid gainsboro;
        padding: 5px;
        height: 80px;
        // width: 60%;
        color: black;
        img{
            float: left;
            margin-right: 15px;
        }
    }
}